package com.home.customtest.typehandle;

import com.custom.action.core.annotations.DbField;
import com.custom.action.core.annotations.DbKey;
import com.custom.action.core.annotations.DbTable;
import com.custom.comm.enums.DbType;
import com.home.customtest.data.DeptUserInfo;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author XiaoBai
 * @since 2024/4/8 16:38
 */
@Getter
@Setter
@DbTable(value = "user_info", order = 9)
public class TestUserInfo extends DeptUserInfo<TestUserInfo> {

    @DbKey
    private Integer id;
    private String name;
    private Integer age;


    @DbField(dataType = DbType.DbInt, typeHandler = StatusEnumTypeHandler.class)
    private StatusEnum status;


    @DbField(dataType = DbType.DbText, typeHandler = JsonTypeHandler.class)
    private List<TestTypeMappedHandler> workList;

}
